package com.bjb.vr.common.mapper;

import com.bjb.vr.common.ao.ResPlatformAo;
import com.bjb.vr.common.vo.ResPlatformVo;
import com.github.yulichang.base.MPJBaseMapper;
import com.bjb.vr.common.dto.ResPlatformResource;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author admin
* @description 针对表【res_platform_resource】的数据库操作Mapper
* @createDate 2022-03-22 15:51:19
* @Entity dto.ResPlatformResource
*/
public interface ResPlatformResourceMapper extends MPJBaseMapper<ResPlatformResource> {

    List<ResPlatformVo> selectByCondition(ResPlatformAo resPlatformAo);

    Integer selectCountByCondition(ResPlatformAo resPlatformAo);

//    boolean addResPlatResourceByContentAuthority(@Param("contentIds") Long[] contentIds ,@Param("tenantId") String tenantId);

    List<ResPlatformResource> queryResPlatResourceByContentAuthority(@Param("contentIds") Long[] contentIds ,@Param("tenantId") String tenantId);

    List<ResPlatformVo> getPlatformResources(ResPlatformAo resPlatformAo);

    int getPlatformResourcesCount(ResPlatformAo resPlatformAo);
}




